<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>overload</title>
    <link rel="stylesheet" href="../qunit/qunit.css">
    <script src="../qunit/qunit.js"></script>
    <script>
    window.onerror = function (error) {
      QUnit.module('Overload', function () {
        QUnit.test('error is thrown when overloading QUnit global', function (assert) {
          assert.true(error.indexOf('QUnit has already been defined.') !== -1);
        });
      });

      return false;
    };
    </script>
    <script src="../qunit/qunit.js"></script>
  </head>
  <body>
    <div id="qunit"></div>
  </body>
</html>
